//router
import { createRouter, createWebHistory } from 'vue-router';
import map from '../components/map.vue';
import home from '../view/home/index.vue';
import hunanMap from '../view/hunanMap/index.vue';
const routes = [
	{
		path: '/',
		name: 'map',
		component: map
	},
	{
		path: '/home',
		name: 'home',
		component: home
	},
	{
		path: '/hunanMap',
		name: 'hunanMap',
		component: hunanMap
	}
];

const router = createRouter({
	history: createWebHistory(),
	routes
});

export default router;
